package pCloud.crypto.kpabe;

import java.net.InetSocketAddress;

import pCloud.message.Message;

public class ACInstanceMessage extends Message{

	int streamId, policyId;
	byte[] pubK, prvK;
	boolean isSW;
	int beta;
	int val; //coudl be alpha or key
	public ACInstanceMessage(int si, byte[] pk, int pi, byte[] pvK, boolean isSw, int beta, int val){
		super(null,null,null,Message.TO_CLOUD);
		this.streamId = si;
		this.policyId = pi;
		this.pubK = pk;
		this.prvK = pvK;
		this.isSW = isSw;
		this.beta = beta;
		this.val = val;
	}

	public int getKeyorAlphaValue(){
		return this.val;
	}
	
	public boolean isSlidingWindowPolicy(){
		return this.isSW;
	}
	
	public int getBeta(){
		return this.beta;
	}
	
	public int getStreamId() {
		return streamId;
	}

	public int getPolicyId() {
		return policyId;
	}

	public byte[] getPubK() {
		return pubK;
	}

	public byte[] getPrvK() {
		return prvK;
	}	
	
}
